<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsps/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>客户资料修改</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/application.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/list.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/form.css"/>'>
	
	<script type="text/javascript">
		function back(idcardno){
			location.href = 'clientMgr?act=loadPagedClients&idcard_no='+idcardno;
		}	
	</script>
<style type="text/css">
	body {
			background:url(pics/bg.jpg);
			-webkit-background-size: cover;
			-moz-background-size: cover;
			background-size: cover;
		}
</style>
  </head>
  
   <body>
    <div id="wrapper">
    	<div id="f_title">客户信息修改</div>
    	<form action=" <c:url value="/clientMgr?act=update"/>" method="post">
    		<input type = "hidden" name="client_no" value="${client.clientNo}">
    		<input type = "hidden" name="create_date" value="${client.createDate}">
    		<input type = "hidden" name="oper_code" value="${client.operCode}">
    		
    		<div class="f_row">
    			<span>客户编号：</span><span>${client.clientNo}</span>
    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			<span>操作员编号：</span><span>${client.operCode}</span>
    		</div>
    		<div class="f_row">
    			<span>创建日期</span><span>${client.createDate}</span>
    		</div>
    		<br/>
    		<div class="f_row">
    			<span>身份证号：</span>
    			<input type = "text" name="idcard_no" size="25" value="${client.idcardNo}">
    		</div>
    		<div class="f_row">
    			<span>姓名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
    			<input type = "text" name="client_name" value="${client.clientName}">
    		</div>
    		<div class="f_row">
    			<span>性别：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
    			<select name="client_sex">
    				<option value="B" <c:if test="${client.clientSex =='B'}">selected</c:if>>男</option>
    				<option value="G" <c:if test="${client.clientSex =='G'}">selected</c:if>>女</option>
    			</select>
    		</div>
    		<div class="f_row">
    			<span>联系电话：</span>
    			<input type = "text" name="client_phone" value="${client.clientPhone}">
    		</div>
    		<div class="f_row">
    			<span>电子邮件：</span>
    			<input type = "text" name="client_email" value="${client.clientEmail}">
    		</div>
    		<div class="f_row">
    			<span>家庭住址：</span>
    			<input type = "text" name="client_address" value="${client.clientAddress}">
    		</div>
    		<div class="f_row">
    			<span>兴趣爱好：</span>
    			<textarea rows="3" name="client_hobby">${client.clientHobby}</textarea>
    		</div>
    		
    		<div class="f_row">
    			<br/>
    			<input type="submit" value = "修改" style="height=25px;width=50px">
    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			<button style="height=25px;width=50px" onclick="back('${client.idcardNo}');">返回</button>
    		</div>
    	</form>
    </div>
    
    <c:if test="${not empty err}">
		<script type="text/javascript">
			alert('${err}');
		</script>
	</c:if>
  </body>
</html>
